<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>新增首页Banner</h2>
<?php if (isset($validationErrors)): ?>
<div class="error">
<?php
    foreach($validationErrors as $field => $messages) {
        echo $field, " : ", $messages[0], "<br/>";
    }
?>
</div>
<?php endif; ?>
<hr/>
<?php
echo $this->Form->create('Banner', array('type' => 'file'));
echo $this->Form->input('Banner.id', array('type'=>'hidden'));
echo $this->Form->input('Banner.title', array('label'=>'Banner标题'));
echo $this->Form->input('Banner.priority', array('label'=>'服务排序优先级'));
echo $this->Form->input('Banner.ref', array('label'=>'引用地址'));
echo $this->Form->input('Banner.banner', array(
    'type' => 'file',
    'label' => 'Banner',
    'after' => '960x380'
));
echo $this->Html->image('/'.$this->Form->data['Banner']['banner']);
?>
    <div class="clear"></div>
    <div class="submit">
        <input  type="submit" value="submit"/>
    </div>
</form>
